package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.addressBook.HLAddressPerson;

public class HLClassAddressPerson extends HLLibClass {
    public HLClassAddressPerson(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLAddressPerson();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                ((HLAddressPerson) self).GetFullName();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLAddressPerson) self).GetFullName());
            }
            break;
        }
        }
    }
}
